<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_course_push_relation".
 *
 * @property string $id
 * @property string $push_id 推送ID
 * @property string $user_id 用户ID
 * @property string $create_by
 * @property string $create_time
 */
class TCoursePushRelation extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_course_push_relation';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['create_time'], 'safe'],
            [['id', 'push_id', 'user_id', 'create_by'], 'string', 'max' => 36],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'push_id' => 'Push ID',
            'user_id' => 'User ID',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
        ];
    }
}
